{include file="pub_header.htm"}

<div class="out_table">
<table width="100%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
  <tr>
    <td align="left" nowrap>&nbsp;
      <a href="{$lang.s._public.global.weburl}" target="_self" class="current_place">{$lang.s._public.global.website}</a>
      &raquo; <a href="{$control_index}?act=index" target="_self" class="current_place">论坛首页</a>
      &raquo; <a href="{$control_index}?act=cp" target="_self" class="current_place">会员中心</a>
    </td>
    <td align="right" nowrap>&nbsp;</td>
  </tr>
</table>
</div>

<div class="out_table"><div class="space"></div></div>
<div class="out_table">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr align="left" class="block_header">
    <td colspan="2">我的收藏</td>
  </tr>
  <tr>
    <td align="center" valign="top" width="20%" class="block_left">
      {include file="pub_cp_menu.htm"}
    </td>
    <td align="center" valign="top" width="80%" class="block_right">
    {if $get.ope == "channel"}
    <table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
      <tr>
        <td height="20" align="left" class="current_place" nowrap>
          <a href="{$control_index}?act=cp" target="_self" class="current_place">会员中心</a>
          &raquo; <a href="{$control_index}?act=cp_favorite" target="_self" class="current_place">我的收藏</a>
        </td>
        <td align="right" class="current_place" nowrap>
          <a href="{$control_index}?act=cp_favorite" target="_self">[帖子收藏]</a>
          <a href="{$control_index}?act=cp_favorite&ope=channel" target="_self"><b class="salient">[板块收藏]</b></a>
        </td>
      </tr>
    </table>
    <div class="space"></div>
    <form action="{$control_index}?act=cp_favorite&ope=channel_update" method="post" name="cp_favorite" id="cp_favorite" enctype="multipart/form-data">
    <table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
      <tr class="block_title">
        <td colspan="7" align="left">板块收藏</td>
      </tr>
      <tr class="block_subtitle" align="center">
        <td width="35%" nowrap>板块</td>
        <td width="10%" nowrap>主题</td>
        <td width="10%" nowrap>帖数</td>
        <td width="10%" nowrap>今日</td>
        <td width="20%" nowrap>最后主题</td>
        <td width="10%" nowrap>排序</td>
        <td width="5%" nowrap>删除</td>
      </tr>
      {foreach name=favorite_channel_list from=$favorite_channel_list item=favorite_channel_list}
        <tr align="center" class="block_list" onmouseover="this.className='block_list_over'" onmouseout="this.className='block_list'">
        <td nowrap><a href="{$control_index}?act=channel&channel_id={$favorite_channel_list.channel_id}" target="_blank" title="{$favorite_channel_list.channel_name}"><b>{$favorite_channel_list.channel_name}</b></a></td>
        <td nowrap>{$favorite_channel_list.channel_number_total_topic}</td>
        <td nowrap>{$favorite_channel_list.channel_number_total_post}</td>
        <td nowrap>{$favorite_channel_list.channel_number_today_post}</td>
        <td align="left">
          {if $favorite_channel_list.channel_last_post_time != 0}
          <a href="{$control_index}?act=topic&topic_id={$favorite_channel_list.channel_last_post_topic_id}&post_id={$favorite_channel_list.channel_last_post_id}&#pid_{$favorite_channel_list.channel_last_post_id}" target="_blank" title="点击查看最后回复">- {$favorite_channel_list.channel_last_post_time|date_format:'%Y-%m-%d %H:%M:%S'}</a>
          <br /><a href="{$control_index}?act=member_view&mid={$favorite_channel_list.channel_last_post_mid}" target="_blank" title="{$favorite_channel_list.channel_last_post_musername}"><span class="subsidiary">- {$favorite_channel_list.channel_last_post_musername|str_cut:0:30:"..."|str_entag:"space"}</span></a>
          {else}
          &nbsp;
          {/if}
        </td>
        <td nowrap><input type="text" name="rank[{$favorite_channel_list.theid}]" value="{$favorite_channel_list.rank}" size="6" class="input"></td>
        <td nowrap><input type="checkbox" name="del[{$favorite_channel_list.theid}]" value="{$favorite_channel_list.theid}" class="checkbox"></td>
      </tr>
      {/foreach}
      <tr>
        <td align="center" colspan="7" class="block_footer">
          <input type="submit" value="确定" name="cp_profile_submit" id="cp_profile_submit" class="submit">
        </td>
      </tr>
    </table>
    </form>
    <table width="98%" cellpadding="3" cellspacing="0" border="0" align="center">
      <tr>
        <td align="right">
        {if $pagination.page_total > 1}
          <span class="pagination_post_list">
            <span class="pagelink_side" title="Total record{$pagination.record_total}">{$pagination.record_total}</span>
            <span class="pagelink_side" title="Current page{$pagination.page_current}/Page{$pagination.page_total}"><span class="pagelink_current_rate">{$pagination.page_current}</span>/{$pagination.page_total}</span>
            {if $pagination.page_listbegin != ""}<span class="pagelink_side" title="Go to first page"><a href="{$pagination.url|print_format:$pagination.page_listbegin}" target="_self">&laquo;</a></span>{/if}
            {if $pagination.page_listbegin_more != ""}<span class="pagelink_side" title="Jump {$pagination.page_listnum/2|@floor} page"><a href="{$pagination.url|print_format:$pagination.page_listbegin_more}" target="_self">...</a></span>{/if}
            {if $pagination.page_previous != ""}<span class="pagelink_side" title="Previous page"><a href="{$pagination.url|print_format:$pagination.page_previous}" target="_self">&#8249;</a></span>{/if}
            {foreach name=page_list from=$pagination.page_list item=page_list}
              {if $page_list.if_current == "1"}
                <span class="pagelink_current" title="Current page{$page_list.page}">{$page_list.page}</span>
              {else}
                <span class="pagelink" title="{$page_list.page}"><a href="{$pagination.url|print_format:$page_list.page}" target="_self">{$page_list.page}</a></span>
              {/if}
            {/foreach}
            {if $pagination.page_next != ""}<span class="pagelink_side" title="Next page"><a href="{$pagination.url|print_format:$pagination.page_next}" target="_self">&#8250;</a></span>{/if}
            {if $pagination.page_listend_more != ""}<span class="pagelink_side" title="Jump {$pagination.page_listnum/2|@floor} page"><a href="{$pagination.url|print_format:$pagination.page_listend_more}" target="_self">...</a></span>{/if}
            {if $pagination.page_listend != ""}<span class="pagelink_side" title="Go to last page"><a href="{$pagination.url|print_format:$pagination.page_listend}" target="_self">&raquo;</a></span>{/if}
            <select onchange="self.location.href=this.options[this.selectedIndex].value" class="select">
            {if $pagination.page_selectbegin != ""}<option value="{$pagination.url|print_format:$pagination.page_selectbegin}">{$pagination.page_selectbegin}</option>{/if}
            {if $pagination.page_selectbegin_more != ""}<option value="{$pagination.url|print_format:$pagination.page_selectbegin_more}">...</option>{/if}
            {foreach name=page_select from=$pagination.page_select item=page_select}
              {if $page_select.if_current == "1"}
                <option value="{$pagination.url|print_format:$page_select.page}" selected="selected">{$page_select.page}</option>
              {else}
                <option value="{$pagination.url|print_format:$page_select.page}">{$page_select.page}</option>
              {/if}
            {/foreach}
            {if $pagination.page_selectend_more != ""}<option value="{$pagination.url|print_format:$pagination.page_selectend_more}">...</option>{/if}
            {if $pagination.page_selectend != ""}<option value="{$pagination.url|print_format:$pagination.page_selectend}">{$pagination.page_selectend}</option>{/if}
            </select>
          </span>
        {/if}
        </td>
      </tr>
    </table>
    {else}
    <table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
      <tr>
        <td height="20" align="left" class="current_place" nowrap>
          <a href="{$control_index}?act=cp" target="_self" class="current_place">会员中心</a>
          &raquo; <a href="{$control_index}?act=cp_favorite" target="_self" class="current_place">我的收藏</a>
        </td>
        <td align="right" class="current_place" nowrap>
          <a href="{$control_index}?act=cp_favorite" target="_self"><b class="salient">[帖子收藏]</b></a>
          <a href="{$control_index}?act=cp_favorite&ope=channel" target="_self">[板块收藏]</a>
        </td>
      </tr>
    </table>
    <div class="space"></div>
    <form action="{$control_index}?act=cp_favorite&ope=topic_update" method="post" name="cp_favorite" id="cp_favorite" enctype="multipart/form-data">
    <table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
      <tr class="block_title">
        <td colspan="7" align="left">帖子收藏</td>
      </tr>
      <tr class="block_subtitle">
        <td width="35%" nowrap>标题</td>
        <td width="15%" nowrap>作者</td>
        <td width="15%" nowrap>板块</td>
        <td width="5%" nowrap>回复</td>
        <td width="20%" nowrap>最后回复</td>
        <td width="5%" nowrap>排序</td>
        <td width="5%" nowrap>删除</td>
      </tr>
      {foreach name=favorite_topic_list from=$favorite_topic_list item=favorite_topic_list}
        <tr align="center" class="block_list" onmouseover="this.className='block_list_over'" onmouseout="this.className='block_list'">
        <td align="left"><a href="{$control_index}?act=topic&topic_id={$favorite_topic_list.topic_id}" target="_blank" title="{$favorite_topic_list.topic_subject}"><b>{$favorite_topic_list.topic_subject}</b></a></td>
        <td nowrap><a href="{$control_index}?act=member_view&mid={$favorite_topic_list.topic_post_mid}" target="_blank" title="{$favorite_topic_list.topic_post_musername}">{$favorite_topic_list.topic_post_musername}</a></td>
        <td nowrap><a href="{$control_index}?act=channel&channel_id={$favorite_topic_list.channel_id}" target="_blank" title="{$favorite_topic_list.channel_name}">{$favorite_topic_list.channel_name}</a></td>
        <td nowrap>{$favorite_topic_list.topic_number_reply}</td>
        <td align="left">
          {if $favorite_topic_list.topic_last_time != 0}
          <a href="{$control_index}?act=topic&topic_id={$favorite_topic_list.topic_id}&post_id={$favorite_topic_list.topic_last_pid}&#pid_{$favorite_topic_list.topic_last_pid}" target="_blank" title="点击查看最后回复">- {$favorite_topic_list.topic_last_time|date_format:'%Y-%m-%d %H:%M:%S'}</a>
          <br /><a href="{$control_index}?act=member_view&mid={$favorite_topic_list.topic_last_mid}" target="_blank" title="{$favorite_topic_list.topic_last_musername}"><span class="subsidiary">- {$favorite_topic_list.topic_last_musername|str_cut:0:30:"..."|str_entag:"space"}</span></a>
          {else}
          &nbsp;
          {/if}
        </td>
        <td nowrap><input type="text" name="rank[{$favorite_topic_list.theid}]" value="{$favorite_topic_list.rank}" size="6" class="input"></td>
        <td nowrap><input type="checkbox" name="del[{$favorite_topic_list.theid}]" value="{$favorite_topic_list.theid}" class="checkbox"></td>
      </tr>
      {/foreach}
      <tr>
        <td align="center" colspan="7" class="block_footer">
          <input type="submit" value="确定" name="cp_profile_submit" id="cp_profile_submit" class="submit">
        </td>
      </tr>
    </table>
    <table width="98%" cellpadding="3" cellspacing="0" border="0" align="center">
      <tr>
        <td align="right">
        {if $pagination.page_total > 1}
          <span class="pagination_post_list">
            <span class="pagelink_side" title="Total record{$pagination.record_total}">{$pagination.record_total}</span>
            <span class="pagelink_side" title="Current page{$pagination.page_current}/Page{$pagination.page_total}"><span class="pagelink_current_rate">{$pagination.page_current}</span>/{$pagination.page_total}</span>
            {if $pagination.page_listbegin != ""}<span class="pagelink_side" title="Go to first page"><a href="{$pagination.url|print_format:$pagination.page_listbegin}" target="_self">&laquo;</a></span>{/if}
            {if $pagination.page_listbegin_more != ""}<span class="pagelink_side" title="Jump {$pagination.page_listnum/2|@floor} page"><a href="{$pagination.url|print_format:$pagination.page_listbegin_more}" target="_self">...</a></span>{/if}
            {if $pagination.page_previous != ""}<span class="pagelink_side" title="Previous page"><a href="{$pagination.url|print_format:$pagination.page_previous}" target="_self">&#8249;</a></span>{/if}
            {foreach name=page_list from=$pagination.page_list item=page_list}
              {if $page_list.if_current == "1"}
                <span class="pagelink_current" title="Current page{$page_list.page}">{$page_list.page}</span>
              {else}
                <span class="pagelink" title="{$page_list.page}"><a href="{$pagination.url|print_format:$page_list.page}" target="_self">{$page_list.page}</a></span>
              {/if}
            {/foreach}
            {if $pagination.page_next != ""}<span class="pagelink_side" title="Next page"><a href="{$pagination.url|print_format:$pagination.page_next}" target="_self">&#8250;</a></span>{/if}
            {if $pagination.page_listend_more != ""}<span class="pagelink_side" title="Jump {$pagination.page_listnum/2|@floor} page"><a href="{$pagination.url|print_format:$pagination.page_listend_more}" target="_self">...</a></span>{/if}
            {if $pagination.page_listend != ""}<span class="pagelink_side" title="Go to last page"><a href="{$pagination.url|print_format:$pagination.page_listend}" target="_self">&raquo;</a></span>{/if}
            <select onchange="self.location.href=this.options[this.selectedIndex].value" class="select">
            {if $pagination.page_selectbegin != ""}<option value="{$pagination.url|print_format:$pagination.page_selectbegin}">{$pagination.page_selectbegin}</option>{/if}
            {if $pagination.page_selectbegin_more != ""}<option value="{$pagination.url|print_format:$pagination.page_selectbegin_more}">...</option>{/if}
            {foreach name=page_select from=$pagination.page_select item=page_select}
              {if $page_select.if_current == "1"}
                <option value="{$pagination.url|print_format:$page_select.page}" selected="selected">{$page_select.page}</option>
              {else}
                <option value="{$pagination.url|print_format:$page_select.page}">{$page_select.page}</option>
              {/if}
            {/foreach}
            {if $pagination.page_selectend_more != ""}<option value="{$pagination.url|print_format:$pagination.page_selectend_more}">...</option>{/if}
            {if $pagination.page_selectend != ""}<option value="{$pagination.url|print_format:$pagination.page_selectend}">{$pagination.page_selectend}</option>{/if}
            </select>
          </span>
        {/if}
        </td>
      </tr>
    </table>
    </form>
    {/if}
    </td>
  </tr>
</table>
</div>

{include file="pub_footer.htm"}